import * as util from '@/utils/tools'

/* 后台用户token */
const AdminkenKey = 'Admin-Token'

export function getAdminToken() {
  return util.getLocalStorage(AdminkenKey) || null
}

export function setAdminToken(token) {
  return util.setLocalStorage(AdminkenKey, token) || null
}

export function deleteAdminToken() {
  return util.deleteLocalStorage(AdminkenKey) || null
}

/* 保存当前激活的tab */
const StorageActiveTab = 'Page-Active-Tab'

export function getActiveTabStorage() {
  return util.getLocalStorage(StorageActiveTab) || null
}

export function setActiveTabStorage(activeTab) {
  return util.setLocalStorage(StorageActiveTab, activeTab) || null
}

export function deleteActiveTabStorage() {
  return util.deleteLocalStorage(StorageActiveTab) || null
}

/* 系统配置 */
const SystemConfig = 'SystemConfig'

export function getSystemConfigStorage() {
  return util.getLocalStorage(SystemConfig) || null
}

export function setSystemConfigStorage(val) {
  return util.setLocalStorage(SystemConfig, val) || null
}

/* 皮肤颜色 */
export const StorageSkinColor = 'Page-Skin-Color'

/* 布局样式 */
export const StorageLayout = 'Page-Layout'

/* 灰色模式 */
export const StorageGrayScale = 'Page-Gray-Scale'

/* 色弱模式 */
export const StorageInvertScale = 'Page-Invert'

/* 菜单图标 */
export const StorageMenuIcon = 'Page-Menu-Icon'

/* 标签 */
export const StorageTabbar = 'Page-Tabbar'

/* 标签图标 */
export const StorageTagIcon = 'Page-Tag-Icon'

/* 面包屑 */
export const StorageBreadcrumb = 'Page-Breadcrumb'

/* 页脚 */  
export const StorageFooter = 'Page-Footer'

